import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from '@/uni_modules/uview-ui'
import MyTabbar from './components/my-tabbar.vue'
import LoginPopup from './components/login-popup.vue'
import store from './store'
import token from './utils/token'
import { customerService } from './utils/service'
import share from './utils/share'
import { showShareMenuInWx } from './utils'
Vue.config.productionTip = false
Vue.prototype.$store = store;
Vue.prototype.token = token.load();
App.mpType = 'app'

customerService.loadConfig();

Vue.component("my-tabbar", MyTabbar);
Vue.component("login-popup", LoginPopup);

showShareMenuInWx();

Vue.mixin(share);
Vue.use(uView);

const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { showShareMenuInWx } from './utils'
import loginPopupVue from './components/login-popup.vue'


export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif